<?php

class user_addr_list{
public function index()
{
$email = strim($GLOBALS['request']['email']);
$pwd = strim($GLOBALS['request']['pwd']);
$user = user_check($email,$pwd);
$user_id  = intval($user['id']);
$root = array();
$root['return'] = 1;
if($user_id>0)
{
$root['user_login_status'] = 1;
$addr_list = getUserAddr($user_id,true);
$root['item'] = $addr_list;
}
else
{
$root['user_login_status'] = 0;
}
output($root);
}
}
?>